﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Dribble Ball</title>
    <link rel="stylesheet" href="../css/db.css" />
    <link rel="stylesheet" href="../css/colorbox.css" />
     <script type="text/javascript" src="../js/track.js"/>
</head>
<body>
    <div id="status">
        <div id="counter">
        </div>
    </div>
    <div id="win">
        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
            width="2500" height="600" version="1.1">
            <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
                <stop offset="0%" style="stop-color: #FFFFFF; stop-opacity: 0.4" />
                <stop offset="100%" style="stop-color: #FFE570; stop-opacity: 0.4" />
            </linearGradient>
            <rect width="100%" height="100%" fill="url(#grad1)" />
            <g id="main">
                <line x1="0" y1="350" x2="350" y2="350" db-pad="ground" />
                <line x1="350" y1="350" x2="350" y2="600" db-pad="ground" />
                <g transform="translate(475 480)" db-cat="reward" />
                <line x1="600" y1="600" x2="600" y2="450" db-pad="ground" />
                <line x1="600" y1="450" x2="1150" y2="450" db-pad="ground" />
                <line x1="1150" y1="450" x2="1150" y2="600" db-pad="ground" />
                <line x1="1450" y1="10" x2="950" y2="10" db-pad="bad" />
                <circle cx="1300" cy="120" r="80" db-pad="glass" />
                <g id="moving" transform="translate(1300 120)" db-cat="reward" />
                <circle cx="1500" cy="600" r="40" db-pad="ground" />
                <circle cx="1600" cy="600" r="40" db-pad="ground" />
                <circle cx="1700" cy="600" r="40" db-pad="ground" />
                <line x1="1740" y1="600" x2="2500" y2="600" db-pad="ground" />
                <g transform="translate(2100 80)" db-cat="reward" />
                <line x1="2100" y1="600" x2="2100" y2="480" db-pad="bad" />
                <line x1="2100" y1="480" x2="2500" y2="480" db-pad="bad" />
                <!--target-->
                <line x1="2250" y1="300" x2="2410" y2="300" db-cat="target" />
                <line x2="2250" y2="310" x1="2410" y1="310" db-pad="wood" />
                <circle cx="2250" cy="300" r="5" db-pad="wood" />
                <circle cx="2410" cy="300" r="5" db-pad="wood" />
                <line x1="2450" y1="380" x2="2450" y2="180" db-pad="wood" />
                <line x1="2490" y1="0" x2="2490" y2="600" db-pad="bad" />
            </g>
            <rect id="dummy" width="100%" height="100%" fill-opacity="0">
            </rect>
            <g id="front">
                <defs>
                    <marker id="mTriangle" markerWidth="50" markerHeight="100" refX="50" refY="50" orient="auto">
                        <path d="M 0 0 50 50 0 100 Z" style="fill: black;" />
                    </marker>
                </defs>
            </g>
        </svg>
    </div>
    <div id="skip">
        &lt;&lt; Skip Preview
    </div>
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.countdown.js"></script>
    <script type="text/javascript" src="../js/jquery.colorbox.js"></script>
    <script type="text/javascript" src="../js/svg.js"></script>
    <script type="text/javascript" src="../js/db.js"></script>
    <script type="text/javascript">
    //<![CDATA[
        db.path = [{ x: 0, y: 300 }, { x: 2500, y: 300}];
        //        db.isInBoundary = function (x, y) {
        //            return y < 1400;
        //        }

        //highlightDesign();

        db.isInBoundary = function (x, y) {
            return y < 600;
        }
        triggers.padRemoved = function (e) {
            var y = 120;
            db.setTimer(10, function () {
                $("#moving").setTranslate(1300, ++y);
            }, function () {
            });
        }

        startGame();
    //]]>
    </script>
</body>
</html>
